<?php $style_th = 'style="background-color:#CCCCCC"' ;?>
<?php $style_td = 'style="border:solid 1px #000"' ;?>
<?php $style_is_code = 'style="color:#FF0000"' ;?>
<?php $style_h2= 'style="width:100%;text-align:center;font-weight:bold;font-size:24px"';?>
<?php $style_description= ' style="width:100%;text-align:center;font-style:italic;text-transform:uppercase;" ';?>

<div <?php echo $style_h2 ?>>DANH SÁCH PHIẾU <?php echo $this->inbound_type==1?"XUẤT":"NHẬP";?> KHO <?php echo $this->inbound_warehouse_group_code ;?></div>
<div <?php echo $style_description ?>>Từ ngày: <?php echo $this->from_time?>. Đến ngày: <?php echo $this->to_time?></div>
<br/>
<table cellpadding="4" cellspacing="0" border='1' style="width:100%; border-collapse:collapse">
	<thead>
		<tr> 
			<th <?php echo $style_th ?>>STT</th>
			<th <?php echo $style_th ?>>Mã phiếu <?php echo $this->string_inbound_type ?> kho</th>
			<th <?php echo $style_th ?>>Nội dung</th>		
			<th <?php echo $style_th ?>>Ngày lập phiếu</th>
			<th <?php echo $style_th ?>>Người lập phiếu</th>
			<th <?php echo $style_th ?>>Kho <?php echo $this->string_inbound_type ?> hàng</th>
			<th <?php echo $style_th ?>>Đơn vị <?php echo $this->string_inbound_type_2 ?> hàng</th>
		</tr>
	</thead>
	<tbody>
		<?php if (count($this->paginator) > 0):$no = 0;?>
		<?php foreach ($this->paginator as $row): ?>		
		<tr> 
			<td align="center"><?php echo ++$no;?></td>
			<td class="is_code"><?php echo $row->inbound_code ?></td>
			<td class='left'><?php echo $row->inbound_note; ?></td>
			<td class='center'><?php echo $this->partial('index/format/time.phtml','admin',array($row->inbound_create_time)); ?></td>
			<td class='left'><?php echo $row->inbound_create_user." - ".$row->m_Array['account_fullname']; ?></td>
			<td class='left'><?php echo $row->inbound_warehouse_code." - ".$row->m_Array['warehouse_name']; ?></td>
			<td class='left'>
				<?php echo $row->inbound_company_code; ?> - <?php echo $row->m_Array['company_name']; ?>
			</td>
		</tr>
		<?php endforeach; ?>
		<?php endif;?>
	</tbody>
</table>